# Generated by TAME - Test Automation Made Easy - A product of Model Compilers LLC
#
# Authoring Information
# 
#     Source File: Step 3 Write Detailed Directions.xlsx
#     Author: D. Harry Beast
#     Company: TAME
#     Created Date: 5/1/2019 11:59:49 AM
#     Last Modified Date: 5/17/2020 11:05:48 AM
#
#     Date Tests Generated: 6/2/2020 4:32:45 AM
#     Date Gherkin Generated: 6/2/2020 4:34:01 AM
  
Feature: Login Demo

    A typical login page used as the initial demonstration of TAME.

  Scenario: Successful Login
      Given I am on the login page
        And there is a user in good standing with ID gary@tametest.net
        And the user gary@tametest.net has password Test.123
       When I type "gary@tametest.net" into the User ID field
        And I type "Test.123" into the Password field
        And I click the blue Log In button
       Then the login is successful. I'm taken to the logged in homepage

  Scenario: Bad Login Error (User's Password=wrong password)
      Given I am on the login page
        And there is a user in good standing with ID gary@tametest.net
        And the user gary@tametest.net does not have password Bad-456
       When I type "gary@tametest.net" into the User ID field
        And I type "Bad-456" into the Password field
        And I click the blue Log In button
       Then I am told that I can't log in

  Scenario: Bad Login Error (User=no user with this ID)
      Given I am on the login page
        And there is no user with ID charlie@tametest.net
       When I type "charlie@tametest.net" into the User ID field
        And I type "Test.123" into the Password field
        And I click the blue Log In button
       Then I am told that I can't log in

  Scenario: User ID not email error
      Given I am on the login page
       When I type "not_an_email" into the User ID field
        And I type "Test.123" into the Password field
        And I click the blue Log In button
       Then I am told the User ID is not in the form of an email address

  Scenario: Missing User ID Error
      Given I am on the login page
       When I leave the User ID blank
        And I type "Test.123" into the Password field
        And I click the blue Log In button
       Then I am told the User ID is required

  Scenario: Missing Password Error
      Given I am on the login page
       When I type "gary@tametest.net" into the User ID field
        And I leave the Password blank
        And I click the blue Log In button
       Then I am told the Password is required
